Filename | (eval 1132)[/usr/lib/x86_64-linux-gnu/perl5/5.20/Template/Document.pm:78] |
Statements | Executed 0 statements in 0s |
Eval Invoked At | /usr/lib/x86_64-linux-gnu/perl5/5.20/Template/Document.pm line 78 |
Sibling evals | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 |
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | sub { | ||||
2 | my $context = shift || die "template sub called without context\n"; | ||||
3 | 4 | 8µs | my $stash = $context->stash; # spent 8µs making 4 calls to Template::Context::stash, avg 2µs/call | ||
4 | my $output = ''; | ||||
5 | my $_tt_error; | ||||
6 | |||||
7 | eval { BLOCK: { | ||||
8 | #line 1 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||||
9 | if (!($stash->get('intranetstylesheet'))) { | ||||
10 | $stash->set('intranetstylesheet', 'staff-global.css'); | ||||
11 | } | ||||
12 | |||||
13 | $output .= "\n"; | ||||
14 | #line 6 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||||
15 | if (($stash->get(['intranetstylesheet', 0, 'match', [ '^https?:|^\/' ]]))) { | ||||
16 | $output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\""; | ||||
17 | #line 3 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||||
18 | $output .= $stash->get('intranetstylesheet'); | ||||
19 | $output .= "\" />\n"; | ||||
20 | } | ||||
21 | else { | ||||
22 | $output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\""; | ||||
23 | #line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||||
24 | $output .= $stash->get('themelang'); | ||||
25 | $output .= "/css/"; | ||||
26 | #line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||||
27 | $output .= $stash->get('intranetstylesheet'); | ||||
28 | $output .= "\" />\n"; | ||||
29 | } | ||||
30 | |||||
31 | $output .= "\n\n<!-- local colors -->\n"; | ||||
32 | #line 15 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||||
33 | if (($stash->get('intranetcolorstylesheet'))) { | ||||
34 | $output .= "\n "; | ||||
35 | #line 14 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||||
36 | if (($stash->get(['intranetcolorstylesheet', 0, 'match', [ '^https?:|^\/' ]]))) { | ||||
37 | $output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\""; | ||||
38 | #line 11 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||||
39 | $output .= $stash->get('intranetcolorstylesheet'); | ||||
40 | $output .= "\" />\n "; | ||||
41 | } | ||||
42 | else { | ||||
43 | $output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\""; | ||||
44 | #line 13 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||||
45 | $output .= $stash->get('themelang'); | ||||
46 | $output .= "/css/"; | ||||
47 | #line 13 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||||
48 | $output .= $stash->get('intranetcolorstylesheet'); | ||||
49 | $output .= "\" />\n "; | ||||
50 | } | ||||
51 | |||||
52 | $output .= "\n"; | ||||
53 | } | ||||
54 | |||||
55 | $output .= "\n"; | ||||
56 | } }; | ||||
57 | if ($@) { | ||||
58 | $_tt_error = $context->catch($@, \$output); | ||||
59 | die $_tt_error unless $_tt_error->type eq 'return'; | ||||
60 | } | ||||
61 | |||||
62 | return $output; | ||||
63 | } | ||||
64 | |||||
65 | ; |